// 引入用来发送请求的方法
import { request } from "../../request/index.js"
import {login} from "../../utils/asyncWx.js"
Page({

  async handleGetUserInfo(e){
    // console.log(e)
    const {encryptedData,iv,rawData,signature}=e.detail
    const {code}=await login()
    const loginParams={encryptedData,iv,rawData,signature,code}
     const res=await request({url:"/users/wxlogin",data:loginParams,method:"post"}) 
     console.log(res)
  }
})